package com.cxm.weilai.service;

import com.cxm.weilai.constants.ServiceNameConstants;
import com.cxm.weilai.service.impl.FeignFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @program: weilai-cloud
 * @description:
 * @author: ChenMan
 * @create: 2019-03-26 17:12
 */
@FeignClient(value = ServiceNameConstants.LOCATION_SERVICE,fallback = FeignFallBack.class)
public interface FeignService {

  @RequestMapping(value = "/location/hi", method= RequestMethod.GET)
  String hello(@RequestParam("name") String name);

}
